
<article class="module width_3_quarter" id="cus_config">
  <header>
    <h3 class="tabs_involved ">自定义变量</h3>
    <ul class="tabs">
      <li><a class="add_config" href="cus_config_add">新增</a></li>
    </ul>
  </header>
  <div class="tab_container">
    <div id="tab1" class="tab_content">
      <table class="tablesorter" cellspacing="0">
        <thead>
          <tr>
           <th width="120px">名称</th>
           <th width="80px">类型</th>
            <th width="100px">调用代码</th>
            <th >内容</th>
            <th width="140px">操作</th>
          </tr>
        </thead>
        <tbody>
       {{foreach from=$conf item=list key=key}}
       {{if $list.type==2}}
       <tr class="c_tr list list_{{$list.c_id}}">
         <td ><input type="text" value="{{$list.name}}" name="name"/></td>
         <td ><input type="text" value="{{$list.value_type}}"  name="value_type"/></td>
         <td ><input type="text" value="{{$list.code}}" name="code" /></td>
          <td ><textarea name="value" style="height:40px">{{$list.value}}</textarea></td>
          <td>
           <input type="hidden" value="{{$list.c_id}}" name="c_id" />
            <input type="button"  class="alt_btn" value="删除" onclick="AD.configDel({{$list.c_id}})"/>
            <input type="button"  class="alt_btn" value="保存" onclick="AD.configEdit('.list_{{$list.c_id}}')"/>
            </td>
        </tr>
        {{/if}}
       {{/foreach}}
       </tbody>
       
      </table>
    </div>
  </div>
  <!-- end of .tab_container --> 
  
</article>


